#ifndef BGV_TimerUtility
#define BGV_TimerUtility

#include "common.h"

struct timeval;

using namespace std;

class TimerUtility  {
public:
    struct timeval startTime, stopTime;
    double timeInterval;
    TimerUtility ();
    TimerUtility (const TimerUtility  &other) = delete;
    TimerUtility  &operator = (const TimerUtility  &other) = delete;
    TimerUtility (TimerUtility  &&other) = delete;
    TimerUtility  &operator = (TimerUtility  &&other) = delete;

    void Start(string msg);
    void Stop(string msg);
    double GetTimeInterval() const;
};

#endif
